function ajaxTable() {
	
	$.ajax({
		type : "get",
		dataType : "json",
		url : "http://localhost/GreenLife/user.do",
		success : function(data) {
			createShowingTable(data.dataList);
		}
	});
}
// 动态的创建一个table
function createShowingTable(data) {
	var result="";
	var len = data.length;
	for (var i = 0; i < len; i++) {
		result = result + "<tr class='gradeX'>" + "<td>" + (i + 1)
				+ "</td>" + "<td>" + data[i].phoneNumber + "</td>" + "<td>"
				+ data[i].phoneNumber + "</td>" + "<td class='center'>"
				+ data[i].email + "</td>" + "<td class='center'>"
				+ data[i].roleId + "</td>" + "</tr>";
		
//		document.write('<tr class="gradeX">');
//		var column01="<td>" + (i + 1)+ "</td>";
//		document.write('<td>1</td>');
//		var column02="<td>"+ data[i].phoneNumber + "</td>";
//		document.write('<td>18826402884</td>');
//		document.write('<td>18826402884</td>');
//		document.write('<td class="center">179320035@qq.com</td>');
//		document.write('<td class="center">11</td>');
//		document.write('</tr>');
	}
	// 添加到div中
	//$("tbody.testasdfas").html(result);
	document.write(result);
	//alert(result);
}
